<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>商户管理|<{$configcache['Title']}></title>
    <link rel="stylesheet" type="text/css" href="__CSS__/content.css"  />
    <link rel="stylesheet" type="text/css" href="__CSS__/public.css"  />
    <script type="text/javascript" src="__JS__/jquery.js"></script>
    <script type="text/javascript" src="__JS__/Public.js"></script>
    <script type="text/javascript" src="__JS__/winpop.js"></script>
    <script type="text/javascript" src="__JS__/My97DatePicker/WdatePicker.js"></script>
    <script type="text/javascript" src="__JS__/PCASClass.js"></script>
    <style type="text/css">
        .select{padding:5px 10px;border:#ddd 1px solid;border-radius:4px;width:60%;margin:5% auto;font-size:12px}
        .select li{list-style:none;padding:10px 0 5px 100px}
        .select .select-list{border-bottom:#eee 1px dashed}
        .select dl{zoom:1;position:relative;line-height:24px;}
        .select dl:after{content:" ";display:block;clear:both;height:0;overflow:hidden}
        .select dt{width:100px;margin-bottom:5px;position:absolute;top:0;left:-100px;text-align:right;color:#666;height:24px;line-height:24px}
        .select dd{float:left;display:inline;margin:0 0 5px 5px;}
        .select a{display:inline-block;white-space:nowrap;height:24px;padding:0 10px;text-decoration:none;color:#039;border-radius:2px;}
        .select a:hover{color:#f60;background-color:#f3edc2}
        .select .selected a{color:#fff;background-color:#f60}
        .select-result dt{font-weight:bold}
        .select-no{color:#999}
        .select .select-result a{padding-right:20px;background:#f60 url("__PUBLIC__/image/close.gif") right 9px no-repeat}
        .select .select-result a:hover{background-position:right -15px}
        .tc{text-align:center; text-indent:0;font-family:"微软雅黑";font-size: 14px;color:#111;}
        #content .atext { width:100px; height:24px; line-height:24px;border:solid 1px #ccc; font-family:"宋体"; }
    </style>
    <script>
        function myBrowser(){
            var userAgent = navigator.userAgent; //取得浏览器的userAgent字符串
            var isOpera = userAgent.indexOf("Opera") > -1;
            if (isOpera) {
                return "Opera"
            }; //判断是否Opera浏览器
            if (userAgent.indexOf("Firefox") > -1) {
                return "FF";
                /*firefox----这段js重新封装了event对象，经验证可以在火狐下支持！----*/
                function __firefox(){
                    HTMLElement.prototype.__defineGetter__("runtimeStyle", __element_style);
                    window.constructor.prototype.__defineGetter__("event", __window_event);
                    Event.prototype.__defineGetter__("srcElement", __event_srcElement);
                }
                function __element_style(){
                    return this.style;
                }
                function __window_event(){
                    return __window_event_constructor();
                }
                function __event_srcElement(){
                    return this.target;
                }
                function __window_event_constructor(){
                    if(document.all){
                        return window.event;
                    }
                    var _caller = __window_event_constructor.caller;
                    while(_caller!=null){
                        var _argument = _caller.arguments[0];
                        if(_argument){
                            var _temp = _argument.constructor;
                            if(_temp.toString().indexOf("Event")!=-1){
                                return _argument;
                            }
                        }
                        _caller = _caller.caller;
                    }
                    return null;
                }
                if(window.addEventListener){
                    __firefox();
                }
            } //判断是否Firefox浏览器
            if (userAgent.indexOf("Chrome") > -1){
                return "Chrome";
            }
            if (userAgent.indexOf("Safari") > -1) {
                return "Safari";
            } //判断是否Safari浏览器
            if (userAgent.indexOf("compatible") > -1 && userAgent.indexOf("MSIE") > -1 && !isOpera) {
                return "IE";
            }; //判断是否IE浏览器
        }
    </script>
</head>
<body>
<div id="content">
    <h1>首页 > 客户管理 > 区域代理合同审核</h1>
    <h2>
        <div class="h2_left">
            <a href="__ACTION__" class="whole">全部</a>
            <a href="javascript:;" class="f5" onclick="f5();">刷新</a>
            <a href="javascript:history.back();" class="Retreat">后退</a>
            <a href="javascript:history.go(1);" class="Advance">前进</a>
        </div>
    </h2>
    <table id="table" border="1" bordercolor="#CCCCCC" cellpadding="0" cellspacing="0">
        <tr>
            <th>
                审核时间
            </th>
            <th>操作人</th>
            <th>
                审核结果
            </th>
            <th>
                备注
            </th>
        </tr>
        <volist name="data" id="vo">
        <tr>
            <td style="text-align:center"><{$vo.createTime}></td>
            <td style="text-align:center"><{$vo.userName}></td>
            <td style="text-align:center"><{$vo.checkRocord}></td>
            <td style="text-align:center"><{$vo.comment}></td>
        </tr>
            </volist>
    </table>
</div>
</body>

<script>
    $('.viewContractDetails').click(function(){
        var userId = $('.viewContractDetails').attr('userId');
        var contractNo = $('.viewContractDetails').attr('contractNo');
        $.ajax({
            type: "POST",
            url: "<{$url}>/manager/contract/getAgentContract",
            data: {userId :userId,contractNO:contractNo},
            success: function(msg){
                // if(msg.code == "2000"){
                //   alert(msg.message);
                //   f5();
                // }
            },
            error:function(){
                alert('网络异常!');
            }
        });
    })

    $('.pass').click(function(){
        var sid = $('.pass').attr('sid');
        var checkName = "<{$checkName}>";
        $.ajax({
            type: "POST",
            url: "<{$url}>/manager/contract/ckContract",
            data: {contractSid :sid,status:1,checkName:checkName},
            success: function(msg){
                if(msg.code == "2000"){
                    alert(msg.message);
                    f5();
                }
            },
            error:function(){
                alert('网络异常!');
            }
        });
    })

    $('.nopass').click(function(){
        var sid = $('.nopass').attr('sid');
        var checkName = "<{$checkName}>";
        $.ajax({
            type: "POST",
            url: "<{$url}>/manager/contract/ckContract",
            data: {contractSid :sid,status:2,checkName:checkName},
            success: function(msg){
                if(msg.code == "2000"){
                    alert(msg.message);
                    f5();
                }
            },
            error:function(){
                alert('网络异常!');
            }
        });
    })
</script>
</html>
